<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="header.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table class="table table-striped table-bordered table-hover table-condensed">
		<tr>
			<td>ID</td>
			<td>名字</td>
			<td>密码</td>
			<td>邮箱</td>
			<td>年龄</td>
			<td>部门ID</td>
			<td>删除</td>
			<td>修改</td>
		</tr>
		<c:forEach items="${list}" var="userDeptVO">
			<tr>
				<td>${userDeptVO.id}</td>
				<td>${userDeptVO.name}</td>
				<td>${userDeptVO.password}</td>
				<td>${userDeptVO.email}</td>
				<td>${userDeptVO.age}</td>
				<td>${userDeptVO.deptName}</td>
				<td><a href="javascript:deleteById(${userDeptVO.id})">删除</a></td>
				<td><a href="${path}/user?method=getUserUpdatePage&id=${userDeptVO.id}">修改</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>